#!/usr/bin/env python
# -*- coding:utf-8 -*-
# import time
#
# print("开始")
#
# while True:
#     print("今天天气不错")
#     print("心情挺好的")
#     time.sleep(1)
#
# print("结束")


# 1. 循环输出1~100所有整数
"""
num = 1
while True:
    print(num) # 1 2 3 ...
    num = num + 1
"""
# print("开始")
# num = 1
# while num < 101:
#     print(num) # 1 2 3 ...
#     num = num + 1
# print("结束")

# 2. 循环输出 1 2 3 4 5 6    8 9 10，即：10以内除了7以外的所有整数。

# num = 1
# while num < 11:
#     if num !=7:
#         print(num) # 1 2 3 ...
#     num = num + 1

# 3. 循环输出100~1所有整数
# num = 100
# while num > 0:
#     print(num)
#     num = num - 1

# 4. 输出 1~100 内的所有奇数。
# num = 1
# while num < 101:
#     if num % 2 == 1:
#         print("奇数", num)
#     num = num + 1

# num = 1
# while num < 101:
#     if num % 2 == 0:
#         print("偶数",num)
#     else:
#         print("奇数", num)
#     num = num + 1


# 5. 用户登录
# flag = True
# while flag:
#     username = input("请输入用户名:")
#     password = input("请输入密码:")
#
#     if username == "alex" and password == "sb":
#         print("欢迎登录")
#         flag = False
#     else:
#         print("用户名或密码错误")

# 使用循环输出 1 2 3 4 5 6 8 9 10，即：10以内除7以外的整数。
# num = 1
# while num < 11:
#     if num == 7:
#         num = num + 1
#         continue
#     print(num)
#     num = num + 1


i = 1
while i < 10:
    print(i)
    j = 100
    while j < 103:
        print(j)
        j = j + i
    i = i + 1
